/**
 * 2016，thor.com，all rights reserved。
 * 
 * Project：		palmmall-spi
 * Filename：	User.java
 * Created：		2016年7月28日
 * Creator：		wolv
 */
package com.thor.palmmall.spi.user;

import java.util.ArrayList;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.thor.commons.entity.KV;
import com.thor.commons.entity.UCN;

/**
 * @author wolv
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class SUser extends UCN {
  private static final long serialVersionUID = -4558397038062870713L;

  private String telephone;
  private String orgCaption;
  private List<SStore> stores = new ArrayList<SStore>();
  private List<String> permissions = new ArrayList<String>();
  private List<KV> userGroups = new ArrayList<KV>();
  private List<SPermObjects> permObjects = new ArrayList<SPermObjects>();

  public List<SStore> getStores() {
    return stores;
  }

  public void setStores(List<SStore> stores) {
    this.stores = stores;
  }

  public List<String> getPermissions() {
    return permissions;
  }

  public void setPermissions(List<String> permissions) {
    this.permissions = permissions;
  }

  public List<KV> getUserGroups() {
    return userGroups;
  }

  public void setUserGroups(List<KV> userGroups) {
    this.userGroups = userGroups;
  }

  public String getTelephone() {
    return telephone;
  }

  public void setTelephone(String telephone) {
    this.telephone = telephone;
  }

  public List<SPermObjects> getPermObjects() {
    return permObjects;
  }

  public void setPermObjects(List<SPermObjects> permObjects) {
    this.permObjects = permObjects;
  }

  public String getOrgCaption() {
    return orgCaption;
  }

  public void setOrgCaption(String orgCaption) {
    this.orgCaption = orgCaption;
  }



  public interface Permissions {

    public static final String PERM_PROJECTREPAIR_CREATE = "/cre-app/projectRepair/create";
    public static final String PERM_COMPLAINADVICE_CREATE = "/cre-app/complainAdvice/create";
    public static final String PERM_SALEINPUT_CREATE = "/cre-app/saleInput/create";
    public static final String PERM_DEVICEINSPECT_CREATE = "/cre-app/deviceInspect/create";
    public static final String PERM_DEVICEREPAIR_CREATE = "/cre-app/deviceRepair/create";
    public static final String PERM_OPERINSPECT_CREATE = "/cre-app/operInspect/create";
  }
}
